import com.bit.demo2.TextDemo2;
import java.sql.Date;
import java.util.*;
import static java.lang.Math.*;


class Student{
    public String name;
    public int num;
    public String sex;
    public double score;
    public static String classes;

    public Student(String name, int num, String sex, double score) {
        this.name = name;
        this.num = num;
        this.sex = sex;
        this.score = score;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", num=" + num +
                ", sex='" + sex + '\'' +
                ", score=" + score +
                ", classes=" + classes+
                '}';
    }
}
public class TextDemo {
    public static void main(String[] args) {
        Student student1 = new Student("李华",110,"man",90.0);
        Student.classes = "104java";

    }
    public static void main4(String[] args) {
        Student student1 = new Student("李华",110,"man",90.0);
        Student student2 = new Student("小红",120,"woman",80.0);
        student1.classes = "104java";

        System.out.println(student1);
        student2.classes = "100java";
        System.out.println(student1);
    }
    public static void main3(String[] args) {
        com.bit.demo.TextDemo textdemo = new com.bit.demo.TextDemo();

    }
    public static void main2(String[] args) {
        double x = 30;
        double y = 40;

        //静态导入的方法写起来更加方便
        //double result = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));

        double result = sqrt(pow(x,2)+pow(y,2));
        System.out.println(result);
    }
    public static void main1(String[] args) {
        int[] arrays = {1,2,3,4,5,6};
        System.out.println(Arrays.toString(arrays));
        java.util.Date dat = new java.util.Date();

    }
}
